// ******************************************************************************
// Copyright     :  Copyright (C) 2018, Hisilicon Technologies Co. Ltd.
// File name     :  jpgenc_c_union_define.h
// Project line  :
// Department    :  K3
// Version       :  1.0
// Date          :  2013/5/31
// Description   :  The description of xxx project
// Others        :  Generated automatically by nManager V4.2
// History       :  2018/03/16 17:38:28 Create file
// ******************************************************************************

#ifndef __JPGENC_C_UNION_DEFINE_H__
#define __JPGENC_C_UNION_DEFINE_H__

/* Define the union U_JPE_ENCODE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_0  : 31  ; /* [31:1] */
        unsigned int    encode : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ENCODE;

/* Define the union U_JPE_INIT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_1   : 31  ; /* [31:1] */
        unsigned int    jp_init : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_INIT;

/* Define the union U_JPE_ENC_HRIGHT1 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_2       : 19  ; /* [31:13] */
        unsigned int    enc_hright1 : 13  ; /* [12:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ENC_HRIGHT1;

/* Define the union U_JPE_ENC_VBOTTOM */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_3       : 19  ; /* [31:13] */
        unsigned int    enc_vbottom : 13  ; /* [12:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ENC_VBOTTOM;

/* Define the union U_JPE_PIC_FORMAT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_4          : 29  ; /* [31:3] */
        unsigned int    enc_pic_format : 3  ; /* [2:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_PIC_FORMAT;

/* Define the union U_JPE_RESTART_INTERVAL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_5            : 16  ; /* [31:16] */
        unsigned int    restart_interval : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_RESTART_INTERVAL;

/* Define the union U_JPE_TQ_Y_SELECT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_6      : 30  ; /* [31:2] */
        unsigned int    tq0_select : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TQ_Y_SELECT;

/* Define the union U_JPE_TQ_U_SELECT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_7      : 30  ; /* [31:2] */
        unsigned int    tq1_select : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TQ_U_SELECT;

/* Define the union U_JPE_TQ_V_SELECT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_8      : 30  ; /* [31:2] */
        unsigned int    tq2_select : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TQ_V_SELECT;

/* Define the union U_JPE_DC_TABLE_SELECT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_9             : 29  ; /* [31:3] */
        unsigned int    dc_table_select_v : 1  ; /* [2] */
        unsigned int    dc_table_select_u : 1  ; /* [1] */
        unsigned int    dc_table_select_y : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_DC_TABLE_SELECT;

/* Define the union U_JPE_AC_TABLE_SELECT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_10            : 29  ; /* [31:3] */
        unsigned int    ac_table_select_v : 1  ; /* [2] */
        unsigned int    ac_table_select_u : 1  ; /* [1] */
        unsigned int    ac_table_select_y : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_AC_TABLE_SELECT;

/* Define the union U_JPE_TABLE_DATA */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_11        : 16  ; /* [31:16] */
        unsigned int    table_wdata_h : 8  ; /* [15:8] */
        unsigned int    table_wdata_l : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TABLE_DATA;

/* Define the union U_JPE_TABLE_ID */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_12   : 28  ; /* [31:4] */
        unsigned int    table_id : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TABLE_ID;

/* Define the union U_JPE_TAC0_LEN */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_13   : 24  ; /* [31:8] */
        unsigned int    tac0_len : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TAC0_LEN;

/* Define the union U_JPE_TDC0_LEN */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_14   : 24  ; /* [31:8] */
        unsigned int    tdc0_len : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TDC0_LEN;

/* Define the union U_JPE_TAC1_LEN */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_15   : 24  ; /* [31:8] */
        unsigned int    tac1_len : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TAC1_LEN;

/* Define the union U_JPE_TDC1_LEN */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_16   : 24  ; /* [31:8] */
        unsigned int    tdc1_len : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_TDC1_LEN;

/* Define the union U_JPE_ENCODER_MODE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_17      : 31  ; /* [31:1] */
        unsigned int    encode_mode : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ENCODER_MODE;

/* Define the union U_JPE_DEBUG */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_18               : 23  ; /* [31:9] */
        unsigned int    deb_bad_table_access : 1  ; /* [8] */
        unsigned int    rsv_19               : 2  ; /* [7:6] */
        unsigned int    deb_vlc_table_busy   : 1  ; /* [5] */
        unsigned int    deb_r2b_memory_full  : 1  ; /* [4] */
        unsigned int    deb_vlc_encode_busy  : 1  ; /* [3] */
        unsigned int    deb_qiq_table_acc    : 1  ; /* [2] */
        unsigned int    rsv_20               : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_DEBUG;

/* Define the union U_JPE_ERROR_IMR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_21               : 21  ; /* [31:11] */
        unsigned int    vlc_table_err_imr    : 1  ; /* [10] */
        unsigned int    r2b_img_size_err_imr : 1  ; /* [9] */
        unsigned int    rsv_22               : 1  ; /* [8] */
        unsigned int    dct_err_imr          : 1  ; /* [7] */
        unsigned int    rsv_23               : 2  ; /* [6:5] */
        unsigned int    vlc_symbol_err_imr   : 1  ; /* [4] */
        unsigned int    rsv_24               : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ERROR_IMR;

/* Define the union U_JPE_ERROR_RIS */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_25               : 21  ; /* [31:11] */
        unsigned int    vlc_table_err_ris    : 1  ; /* [10] */
        unsigned int    r2b_img_size_err_ris : 1  ; /* [9] */
        unsigned int    rsv_26               : 1  ; /* [8] */
        unsigned int    dct_err_ris          : 1  ; /* [7] */
        unsigned int    rsv_27               : 2  ; /* [6:5] */
        unsigned int    vlc_symbol_err_ris   : 1  ; /* [4] */
        unsigned int    rsv_28               : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ERROR_RIS;

/* Define the union U_JPE_ERROR_MIS */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_29               : 21  ; /* [31:11] */
        unsigned int    vlc_table_err_mis    : 1  ; /* [10] */
        unsigned int    r2b_img_size_err_mis : 1  ; /* [9] */
        unsigned int    rsv_30               : 1  ; /* [8] */
        unsigned int    dct_err_mis          : 1  ; /* [7] */
        unsigned int    rsv_31               : 2  ; /* [6:5] */
        unsigned int    vlc_symbol_err_mis   : 1  ; /* [4] */
        unsigned int    rsv_32               : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ERROR_MIS;

/* Define the union U_JPE_ERROR_ICR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_33               : 21  ; /* [31:11] */
        unsigned int    vlc_table_err_icr    : 1  ; /* [10] */
        unsigned int    r2b_img_size_err_icr : 1  ; /* [9] */
        unsigned int    rsv_34               : 1  ; /* [8] */
        unsigned int    dct_err_icr          : 1  ; /* [7] */
        unsigned int    rsv_35               : 2  ; /* [6:5] */
        unsigned int    vlc_symbol_err_icr   : 1  ; /* [4] */
        unsigned int    rsv_36               : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ERROR_ICR;

/* Define the union U_JPE_ERROR_ISR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_37               : 21  ; /* [31:11] */
        unsigned int    vlc_table_err_isr    : 1  ; /* [10] */
        unsigned int    r2b_img_size_err_isr : 1  ; /* [9] */
        unsigned int    rsv_38               : 1  ; /* [8] */
        unsigned int    dct_err_isr          : 1  ; /* [7] */
        unsigned int    rsv_39               : 2  ; /* [6:5] */
        unsigned int    vlc_symbol_err_isr   : 1  ; /* [4] */
        unsigned int    rsv_40               : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ERROR_ISR;

/* Define the union U_JPE_STATUS_IMR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_41              : 26  ; /* [31:6] */
        unsigned int    gen_header_done_imr : 1  ; /* [5] */
        unsigned int    encode_done_imr     : 1  ; /* [4] */
        unsigned int    rsv_42              : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_STATUS_IMR;

/* Define the union U_JPE_STATUS_RIS */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_43              : 26  ; /* [31:6] */
        unsigned int    gen_header_done_ris : 1  ; /* [5] */
        unsigned int    encode_done_ris     : 1  ; /* [4] */
        unsigned int    rsv_44              : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_STATUS_RIS;

/* Define the union U_JPE_STATUS_MIS */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_45              : 26  ; /* [31:6] */
        unsigned int    gen_header_done_mis : 1  ; /* [5] */
        unsigned int    encode_done_mis     : 1  ; /* [4] */
        unsigned int    rsv_46              : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_STATUS_MIS;

/* Define the union U_JPE_STATUS_ICR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_47              : 26  ; /* [31:6] */
        unsigned int    gen_header_done_icr : 1  ; /* [5] */
        unsigned int    encode_done_icr     : 1  ; /* [4] */
        unsigned int    rsv_48              : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_STATUS_ICR;

/* Define the union U_JPE_STATUS_ISR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_49              : 26  ; /* [31:6] */
        unsigned int    gen_header_done_isr : 1  ; /* [5] */
        unsigned int    encode_done_isr     : 1  ; /* [4] */
        unsigned int    rsv_50              : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_STATUS_ISR;

/* Define the union U_JPE_CONFIG */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_51       : 27  ; /* [31:5] */
        unsigned int    speedview_en : 1  ; /* [4] */
        unsigned int    rsv_52       : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_CONFIG;

/* Define the union U_ADDRESS_Y */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    address_y : 30  ; /* [31:2] */
        unsigned int    rsv_53    : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_ADDRESS_Y;

/* Define the union U_ADDRESS_UV */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    address_uv : 30  ; /* [31:2] */
        unsigned int    rsv_54     : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_ADDRESS_UV;

/* Define the union U_STRIDE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_55 : 17  ; /* [31:15] */
        unsigned int    stride : 11  ; /* [14:4] */
        unsigned int    rsv_56 : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_STRIDE;

/* Define the union U_SYNCCFG */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_57     : 29  ; /* [31:3] */
        unsigned int    sram_noopt : 1  ; /* [2] */
        unsigned int    rsv_58     : 1  ; /* [1] */
        unsigned int    source     : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_SYNCCFG;

/* Define the union U_JPE_ENC_HRIGHT2 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_59      : 19  ; /* [31:13] */
        unsigned int    enc_hright2 : 13  ; /* [12:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPE_ENC_HRIGHT2;

/* Define the union U_JPG_BYTE_CNT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_60   : 2  ; /* [31:30] */
        unsigned int    byte_cnt : 30  ; /* [29:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_JPG_BYTE_CNT;

/* Define the union U_PREFETCH */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_61         : 20  ; /* [31:12] */
        unsigned int    prefetch_delay : 11  ; /* [11:1] */
        unsigned int    prefetch_en    : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_PREFETCH;

/* Define the union U_PREFETCH_IDY0 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_62 : 1  ; /* [31] */
        unsigned int    rsv_63 : 7  ; /* [30:24] */
        unsigned int    rsv_64 : 1  ; /* [23] */
        unsigned int    rsv_65 : 7  ; /* [22:16] */
        unsigned int    rsv_66 : 1  ; /* [15] */
        unsigned int    rsv_67 : 7  ; /* [14:8] */
        unsigned int    rsv_68 : 1  ; /* [7] */
        unsigned int    rsv_69 : 7  ; /* [6:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_PREFETCH_IDY0;

/* Define the union U_PREFETCH_IDY1 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_70 : 1  ; /* [31] */
        unsigned int    rsv_71 : 7  ; /* [30:24] */
        unsigned int    rsv_72 : 1  ; /* [23] */
        unsigned int    rsv_73 : 7  ; /* [22:16] */
        unsigned int    rsv_74 : 1  ; /* [15] */
        unsigned int    rsv_75 : 7  ; /* [14:8] */
        unsigned int    rsv_76 : 1  ; /* [7] */
        unsigned int    rsv_77 : 7  ; /* [6:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_PREFETCH_IDY1;

/* Define the union U_PREFETCH_IDUV0 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_78 : 1  ; /* [31] */
        unsigned int    rsv_79 : 7  ; /* [30:24] */
        unsigned int    rsv_80 : 1  ; /* [23] */
        unsigned int    rsv_81 : 7  ; /* [22:16] */
        unsigned int    rsv_82 : 1  ; /* [15] */
        unsigned int    rsv_83 : 7  ; /* [14:8] */
        unsigned int    rsv_84 : 1  ; /* [7] */
        unsigned int    rsv_85 : 7  ; /* [6:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_PREFETCH_IDUV0;

/* Define the union U_PREFETCH_IDUVY */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_86 : 17  ; /* [31:15] */
        unsigned int    rsv_87 : 7  ; /* [14:8] */
        unsigned int    rsv_88 : 1  ; /* [7] */
        unsigned int    rsv_89 : 7  ; /* [6:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_PREFETCH_IDUVY;

/* Define the union U_PREREAD */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_90  : 28  ; /* [31:4] */
        unsigned int    preread : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_PREREAD;

/* Define the union U_INPUT_SWAP */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_91      : 30  ; /* [31:2] */
        unsigned int    swapin_u_v  : 1  ; /* [1] */
        unsigned int    swapin_y_uv : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_INPUT_SWAP;

/* Define the union U_FORCE_CLK_ON_CFG */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_92       : 31  ; /* [31:1] */
        unsigned int    force_clk_on : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_FORCE_CLK_ON_CFG;

/* Define the union U_DBG_0 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_0 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_0;

/* Define the union U_DBG_1 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_1 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_1;

/* Define the union U_DBG_2 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_2 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_2;

/* Define the union U_DBG_3 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_3 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_3;

/* Define the union U_DBG_4 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_4 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_4;

/* Define the union U_DBG_5 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_5 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_5;

/* Define the union U_DBG_6 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_6 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_6;

/* Define the union U_DBG_7 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_7 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_7;

/* Define the union U_DBG_8 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_8 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_8;

/* Define the union U_DBG_9 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_9 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_9;

/* Define the union U_DBG_10 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_10 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_10;

/* Define the union U_DBG_11 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_11 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_11;

/* Define the union U_DBG_12 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_12 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_12;

/* Define the union U_DBG_13 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_13 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_13;

/* Define the union U_DBG_14 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_14 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_14;

/* Define the union U_DBG_15 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_15 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_15;

/* Define the union U_DBG_RW_0 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    dbg_rw_0 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_DBG_RW_0;


//==============================================================================
/* Define the global struct */
typedef struct
{
    volatile U_JPE_ENCODE           JPE_ENCODE           ; /* 4 */
    volatile U_JPE_INIT             JPE_INIT             ; /* 8 */
    volatile U_JPE_ENC_HRIGHT1      JPE_ENC_HRIGHT1      ; /* 18 */
    volatile U_JPE_ENC_VBOTTOM      JPE_ENC_VBOTTOM      ; /* 1C */
    volatile U_JPE_PIC_FORMAT       JPE_PIC_FORMAT       ; /* 20 */
    volatile U_JPE_RESTART_INTERVAL JPE_RESTART_INTERVAL ; /* 24 */
    volatile U_JPE_TQ_Y_SELECT      JPE_TQ_Y_SELECT      ; /* 28 */
    volatile U_JPE_TQ_U_SELECT      JPE_TQ_U_SELECT      ; /* 2C */
    volatile U_JPE_TQ_V_SELECT      JPE_TQ_V_SELECT      ; /* 30 */
    volatile U_JPE_DC_TABLE_SELECT  JPE_DC_TABLE_SELECT  ; /* 34 */
    volatile U_JPE_AC_TABLE_SELECT  JPE_AC_TABLE_SELECT  ; /* 38 */
    volatile U_JPE_TABLE_DATA       JPE_TABLE_DATA       ; /* 3C */
    volatile U_JPE_TABLE_ID         JPE_TABLE_ID         ; /* 40 */
    volatile U_JPE_TAC0_LEN         JPE_TAC0_LEN         ; /* 44 */
    volatile U_JPE_TDC0_LEN         JPE_TDC0_LEN         ; /* 48 */
    volatile U_JPE_TAC1_LEN         JPE_TAC1_LEN         ; /* 4C */
    volatile U_JPE_TDC1_LEN         JPE_TDC1_LEN         ; /* 50 */
    volatile U_JPE_ENCODER_MODE     JPE_ENCODER_MODE     ; /* 60 */
    volatile U_JPE_DEBUG            JPE_DEBUG            ; /* 64 */
    volatile U_JPE_ERROR_IMR        JPE_ERROR_IMR        ; /* 68 */
    volatile U_JPE_ERROR_RIS        JPE_ERROR_RIS        ; /* 6C */
    volatile U_JPE_ERROR_MIS        JPE_ERROR_MIS        ; /* 70 */
    volatile U_JPE_ERROR_ICR        JPE_ERROR_ICR        ; /* 74 */
    volatile U_JPE_ERROR_ISR        JPE_ERROR_ISR        ; /* 78 */
    volatile U_JPE_STATUS_IMR       JPE_STATUS_IMR       ; /* 7C */
    volatile U_JPE_STATUS_RIS       JPE_STATUS_RIS       ; /* 80 */
    volatile U_JPE_STATUS_MIS       JPE_STATUS_MIS       ; /* 84 */
    volatile U_JPE_STATUS_ICR       JPE_STATUS_ICR       ; /* 88 */
    volatile U_JPE_STATUS_ISR       JPE_STATUS_ISR       ; /* 8C */
    volatile U_JPE_CONFIG           JPE_CONFIG           ; /* 90 */
    volatile U_ADDRESS_Y            ADDRESS_Y            ; /* 94 */
    volatile U_ADDRESS_UV           ADDRESS_UV           ; /* 98 */
    volatile U_STRIDE               STRIDE               ; /* 9C */
    volatile U_SYNCCFG              SYNCCFG              ; /* 100 */
    volatile U_JPE_ENC_HRIGHT2      JPE_ENC_HRIGHT2      ; /* 104 */
    volatile U_JPG_BYTE_CNT         JPG_BYTE_CNT         ; /* 108 */
    volatile U_PREFETCH             PREFETCH             ; /* 10C */
    volatile U_PREFETCH_IDY0        PREFETCH_IDY0        ; /* 110 */
    volatile U_PREFETCH_IDY1        PREFETCH_IDY1        ; /* 114 */
    volatile U_PREFETCH_IDUV0       PREFETCH_IDUV0       ; /* 118 */
    volatile U_PREFETCH_IDUVY       PREFETCH_IDUVY       ; /* 11C */
    volatile U_PREREAD              PREREAD              ; /* 120 */
    volatile U_INPUT_SWAP           INPUT_SWAP           ; /* 124 */
    volatile U_FORCE_CLK_ON_CFG     FORCE_CLK_ON_CFG     ; /* 130 */
    volatile U_DBG_0                DBG_0                ; /* 200 */
    volatile U_DBG_1                DBG_1                ; /* 204 */
    volatile U_DBG_2                DBG_2                ; /* 208 */
    volatile U_DBG_3                DBG_3                ; /* 20C */
    volatile U_DBG_4                DBG_4                ; /* 210 */
    volatile U_DBG_5                DBG_5                ; /* 214 */
    volatile U_DBG_6                DBG_6                ; /* 218 */
    volatile U_DBG_7                DBG_7                ; /* 21C */
    volatile U_DBG_8                DBG_8                ; /* 220 */
    volatile U_DBG_9                DBG_9                ; /* 224 */
    volatile U_DBG_10               DBG_10               ; /* 228 */
    volatile U_DBG_11               DBG_11               ; /* 22C */
    volatile U_DBG_12               DBG_12               ; /* 230 */
    volatile U_DBG_13               DBG_13               ; /* 234 */
    volatile U_DBG_14               DBG_14               ; /* 238 */
    volatile U_DBG_15               DBG_15               ; /* 23C */
    volatile U_DBG_RW_0             DBG_RW_0             ; /* 300 */

} S_jpgenc_REGS_TYPE;

/* Declare the struct pointor of the module jpgenc */
extern volatile S_jpgenc_REGS_TYPE *gopjpgencAllReg;

/* Declare the functions that set the member value */
int iSetJPE_ENCODE_encode(unsigned int uencode);
int iSetJPE_INIT_jp_init(unsigned int ujp_init);
int iSetJPE_ENC_HRIGHT1_enc_hright1(unsigned int uenc_hright1);
int iSetJPE_ENC_VBOTTOM_enc_vbottom(unsigned int uenc_vbottom);
int iSetJPE_PIC_FORMAT_enc_pic_format(unsigned int uenc_pic_format);
int iSetJPE_RESTART_INTERVAL_restart_interval(unsigned int urestart_interval);
int iSetJPE_TQ_Y_SELECT_tq0_select(unsigned int utq0_select);
int iSetJPE_TQ_U_SELECT_tq1_select(unsigned int utq1_select);
int iSetJPE_TQ_V_SELECT_tq2_select(unsigned int utq2_select);
int iSetJPE_DC_TABLE_SELECT_dc_table_select_v(unsigned int udc_table_select_v);
int iSetJPE_DC_TABLE_SELECT_dc_table_select_u(unsigned int udc_table_select_u);
int iSetJPE_DC_TABLE_SELECT_dc_table_select_y(unsigned int udc_table_select_y);
int iSetJPE_AC_TABLE_SELECT_ac_table_select_v(unsigned int uac_table_select_v);
int iSetJPE_AC_TABLE_SELECT_ac_table_select_u(unsigned int uac_table_select_u);
int iSetJPE_AC_TABLE_SELECT_ac_table_select_y(unsigned int uac_table_select_y);
int iSetJPE_TABLE_DATA_table_wdata_h(unsigned int utable_wdata_h);
int iSetJPE_TABLE_DATA_table_wdata_l(unsigned int utable_wdata_l);
int iSetJPE_TABLE_ID_table_id(unsigned int utable_id);
int iSetJPE_TAC0_LEN_tac0_len(unsigned int utac0_len);
int iSetJPE_TDC0_LEN_tdc0_len(unsigned int utdc0_len);
int iSetJPE_TAC1_LEN_tac1_len(unsigned int utac1_len);
int iSetJPE_TDC1_LEN_tdc1_len(unsigned int utdc1_len);
int iSetJPE_ENCODER_MODE_encode_mode(unsigned int uencode_mode);
int iSetJPE_DEBUG_deb_bad_table_access(unsigned int udeb_bad_table_access);
int iSetJPE_DEBUG_deb_vlc_table_busy(unsigned int udeb_vlc_table_busy);
int iSetJPE_DEBUG_deb_r2b_memory_full(unsigned int udeb_r2b_memory_full);
int iSetJPE_DEBUG_deb_vlc_encode_busy(unsigned int udeb_vlc_encode_busy);
int iSetJPE_DEBUG_deb_qiq_table_acc(unsigned int udeb_qiq_table_acc);
int iSetJPE_ERROR_IMR_vlc_table_err_imr(unsigned int uvlc_table_err_imr);
int iSetJPE_ERROR_IMR_r2b_img_size_err_imr(unsigned int ur2b_img_size_err_imr);
int iSetJPE_ERROR_IMR_dct_err_imr(unsigned int udct_err_imr);
int iSetJPE_ERROR_IMR_vlc_symbol_err_imr(unsigned int uvlc_symbol_err_imr);
int iSetJPE_ERROR_RIS_vlc_table_err_ris(unsigned int uvlc_table_err_ris);
int iSetJPE_ERROR_RIS_r2b_img_size_err_ris(unsigned int ur2b_img_size_err_ris);
int iSetJPE_ERROR_RIS_dct_err_ris(unsigned int udct_err_ris);
int iSetJPE_ERROR_RIS_vlc_symbol_err_ris(unsigned int uvlc_symbol_err_ris);
int iSetJPE_ERROR_MIS_vlc_table_err_mis(unsigned int uvlc_table_err_mis);
int iSetJPE_ERROR_MIS_r2b_img_size_err_mis(unsigned int ur2b_img_size_err_mis);
int iSetJPE_ERROR_MIS_dct_err_mis(unsigned int udct_err_mis);
int iSetJPE_ERROR_MIS_vlc_symbol_err_mis(unsigned int uvlc_symbol_err_mis);
int iSetJPE_ERROR_ICR_vlc_table_err_icr(unsigned int uvlc_table_err_icr);
int iSetJPE_ERROR_ICR_r2b_img_size_err_icr(unsigned int ur2b_img_size_err_icr);
int iSetJPE_ERROR_ICR_dct_err_icr(unsigned int udct_err_icr);
int iSetJPE_ERROR_ICR_vlc_symbol_err_icr(unsigned int uvlc_symbol_err_icr);
int iSetJPE_ERROR_ISR_vlc_table_err_isr(unsigned int uvlc_table_err_isr);
int iSetJPE_ERROR_ISR_r2b_img_size_err_isr(unsigned int ur2b_img_size_err_isr);
int iSetJPE_ERROR_ISR_dct_err_isr(unsigned int udct_err_isr);
int iSetJPE_ERROR_ISR_vlc_symbol_err_isr(unsigned int uvlc_symbol_err_isr);
int iSetJPE_STATUS_IMR_gen_header_done_imr(unsigned int ugen_header_done_imr);
int iSetJPE_STATUS_IMR_encode_done_imr(unsigned int uencode_done_imr);
int iSetJPE_STATUS_RIS_gen_header_done_ris(unsigned int ugen_header_done_ris);
int iSetJPE_STATUS_RIS_encode_done_ris(unsigned int uencode_done_ris);
int iSetJPE_STATUS_MIS_gen_header_done_mis(unsigned int ugen_header_done_mis);
int iSetJPE_STATUS_MIS_encode_done_mis(unsigned int uencode_done_mis);
int iSetJPE_STATUS_ICR_gen_header_done_icr(unsigned int ugen_header_done_icr);
int iSetJPE_STATUS_ICR_encode_done_icr(unsigned int uencode_done_icr);
int iSetJPE_STATUS_ISR_gen_header_done_isr(unsigned int ugen_header_done_isr);
int iSetJPE_STATUS_ISR_encode_done_isr(unsigned int uencode_done_isr);
int iSetJPE_CONFIG_speedview_en(unsigned int uspeedview_en);
int iSetADDRESS_Y_address_y(unsigned int uaddress_y);
int iSetADDRESS_UV_address_uv(unsigned int uaddress_uv);
int iSetSTRIDE_stride(unsigned int ustride);
int iSetSYNCCFG_sram_noopt(unsigned int usram_noopt);
int iSetSYNCCFG_source(unsigned int usource);
int iSetJPE_ENC_HRIGHT2_enc_hright2(unsigned int uenc_hright2);
int iSetJPG_BYTE_CNT_byte_cnt(unsigned int ubyte_cnt);
int iSetPREFETCH_prefetch_delay(unsigned int uprefetch_delay);
int iSetPREFETCH_prefetch_en(unsigned int uprefetch_en);




int iSetPREREAD_preread(unsigned int upreread);
int iSetINPUT_SWAP_swapin_u_v(unsigned int uswapin_u_v);
int iSetINPUT_SWAP_swapin_y_uv(unsigned int uswapin_y_uv);
int iSetFORCE_CLK_ON_CFG_force_clk_on(unsigned int uforce_clk_on);
int iSetDBG_0_dbg_0(unsigned int udbg_0);
int iSetDBG_1_dbg_1(unsigned int udbg_1);
int iSetDBG_2_dbg_2(unsigned int udbg_2);
int iSetDBG_3_dbg_3(unsigned int udbg_3);
int iSetDBG_4_dbg_4(unsigned int udbg_4);
int iSetDBG_5_dbg_5(unsigned int udbg_5);
int iSetDBG_6_dbg_6(unsigned int udbg_6);
int iSetDBG_7_dbg_7(unsigned int udbg_7);
int iSetDBG_8_dbg_8(unsigned int udbg_8);
int iSetDBG_9_dbg_9(unsigned int udbg_9);
int iSetDBG_10_dbg_10(unsigned int udbg_10);
int iSetDBG_11_dbg_11(unsigned int udbg_11);
int iSetDBG_12_dbg_12(unsigned int udbg_12);
int iSetDBG_13_dbg_13(unsigned int udbg_13);
int iSetDBG_14_dbg_14(unsigned int udbg_14);
int iSetDBG_15_dbg_15(unsigned int udbg_15);
int iSetDBG_RW_0_dbg_rw_0(unsigned int udbg_rw_0);

#endif // __JPGENC_C_UNION_DEFINE_H__
